<?php

namespace app\admin\model;

use think\Model;

class Shops extends Model
{
    protected $pk = 'id';
    // 设置当前模型对应的完整数据表名称
    protected $table = 'tp_shops';
    protected $type = [
        'slider'    =>  'json',
    ];

    public function shopType()
    {
        return $this->hasMany('ShopTypeModel','id','type_id');
    }
}
